﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebApplication3.Models;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace WebApplication3.DAL
{
    public class EmployeeContent : DbContext
    {
        public EmployeeContent() : base("SalesERPDAL"){}

        public DbSet<Employee> Employees { get; set; }

        // 取消建表时自动添加复数后缀的功能
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
    
}